///一些公用的属性和方法
var app = getApp().$wepy;
const navInfo = app.getNavHeight();
export default {
    data: {

    },
    computed: {
        containerPaddingTop () {  
            if(!navInfo) return 84;
            if(navInfo.statusBarHeight==0||navInfo.navBarHeight==0) return 84;         
            return navInfo.statusBarHeight + navInfo.navBarHeight;
        },
        navBarHeight () {
            if(!navInfo) return 44;    
            if(navInfo.navBarHeight==0) return 44;                  
            return navInfo.navBarHeight;
        },
        statusBarHeight(){
            if(!navInfo) return 40;  
            if(navInfo.statusBarHeight==0) return 40;                    
            return navInfo.statusBarHeight; 
        },
        menuPaddingTop(){
            return navInfo.menuPaddingTop;
        },
        menuHeight(){
            return navInfo.menuHeight;
        },
    },
    methods: {

    }
}